﻿using BootstrapBlazor.Components;
using BlazorAdmin.Web.Shared.Models;
using Microsoft.AspNetCore.Components;
using System.Diagnostics.CodeAnalysis;

namespace BlazorAdmin.Web.Shared.Components
{
    public partial class DBLogSearch
    {
        [Parameter]
        [NotNull]
        public DBLogSearchModel? Value { get; set; }

        /// <summary>
        /// 
        /// </summary>
        [Parameter]
        [NotNull]
        public EventCallback<DBLogSearchModel>? ValueChanged { get; set; }

        public IEnumerable<SelectedItem> Items { get; set; } = new List<SelectedItem>() {
            new ("Insert", "Insert"),
            new ("Update", "Update"),
            new ("Fetch", "Fetch"),
            new ("SingleOrDefault", "SingleOrDefault"),
            new ("FirstOrDefault", "FirstOrDefault")
        };
    }
}
